package com.dubboconsumer.service.impl;


import com.alibaba.dubbo.config.annotation.Service;
import service.DemoService;

/**
 * @author: create by Young
 * @version: v1.0
 * @description: com.dubboconsumer.service.impl
 * @date:2019/4/2 7:51
 */

/**
 * @Service用来暴露dubbo的provider
 * 相当于<dubbo:service interface="com.service.DemoService"...
 *
 */
@Service(version = "${demo.service.version}") //version用来让consumer指定provider
public class DemoServiceImpl implements DemoService {
	@Override
	public String sayHello(String name) {
		return "Hello, " + name + " (from Spring Boot provider implement)";
	}
}
